import request from '@/utils/request'

// 查询服务计划列表
export function listServiceplan(query) {
  return request({
    url: '/system/serviceplan/list',
    method: 'get',
    params: query
  })
}

// 查询服务计划详细
export function getServiceplan(servicePlanId) {
  return request({
    url: '/system/serviceplan/' + servicePlanId,
    method: 'get'
  })
}

// 新增服务计划
export function addServiceplan(data) {
  return request({
    url: '/system/serviceplan',
    method: 'post',
    data: data
  })
}

// 修改服务计划
export function updateServiceplan(data) {
  return request({
    url: '/system/serviceplan',
    method: 'put',
    data: data
  })
}

// 删除服务计划
export function delServiceplan(servicePlanId) {
  return request({
    url: '/system/serviceplan/' + servicePlanId,
    method: 'delete'
  })
}
